package org.come.login;

import java.awt.Dimension;
import java.awt.Graphics;

import org.come.until.Music;
import org.come.view.View;

public class BindAccountTipView extends View{
    private SpriteBtn btnYes,//确认按钮
    Btnno,
    backImg;
    private LoginJpanel loginJpanel;
    public BindAccountTipView(LoginJpanel loginJpanel) {
        this.loginJpanel = loginJpanel;
        this.setPreferredSize(new Dimension(530, 168));
        this.setLayout(null);
        backImg = new SpriteBtn("resource/NewUi/绑定账号提示", 0, 0, false);
        backImg.setBounds(0, 0, 530, 160);
        this.add(backImg);

        btnYes = new SpriteBtn("resource/NewUi/按钮_确定3", 70, 104, false);
        btnYes.setBounds(70, 104, 192, 52);
        btnYes.addMouseListener(new LoginMouslisten(8, btnYes, loginJpanel));
        this.add(btnYes);
        Btnno = new SpriteBtn("resource/NewUi/按钮_取消4", 320, 112, false);
        Btnno.setBounds(320, 112, 159, 44);
        Btnno.addMouseListener(new LoginMouslisten(9, Btnno, loginJpanel));
        this.add(Btnno);
    }
    @Override
    protected void paintComponent(Graphics g) {
        // TODO Auto-generated method stub
        super.paintComponent(g);
        backImg.draw(g);
        btnYes.draw(g);
        Btnno.draw(g);
    }
}
